package game;

public class Item {
	String name;
	String dispName;
	String description;
	String pickupMessage;
	String dropMessage;
	String cannotPickupMessage;
	int weight;
	boolean canBeCarried;
	boolean canBeWorn;
	boolean isRequired;
	
	public Item() {
		name = "";
		dispName = "";
		description = "";
		pickupMessage = "";
		dropMessage = "";
		cannotPickupMessage = "";
		weight = 0;
		canBeCarried = false;
		canBeWorn = false;
		isRequired = false;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void setDispName(String dispName) {
		this.dispName = dispName;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public void setPickupMessage(String pickupMessage) {
		this.pickupMessage = pickupMessage;
	}
	
	public void setDropMessage(String dropMessage) {
		this.dropMessage = dropMessage;
	}
	
	public void setCannotPickupMessage(String cannotPickupMessage) {
		this.cannotPickupMessage = cannotPickupMessage;
	}
	
	public void setWeight(int weight) {
		this.weight = weight;
	}
	
	public void setWeight(String weight) {
		this.weight = Integer.parseInt(weight.trim());
	}
	
	public void setCanBeCarried(boolean canBeCarried) {
		this.canBeCarried = canBeCarried;
	}
	
	public void setCanBeCarried(String canBeCarried) {
		this.canBeCarried = Boolean.parseBoolean(canBeCarried.trim());
	}
	
	public void setCanBeWorn(boolean canBeWorn) {
		this.canBeWorn = canBeWorn;
	}
	
	public void setIsRequired(String isRequired) {
		this.isRequired = Boolean.parseBoolean(isRequired.trim());
	}
}
